package cn.com.surker.production.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 生产泵送单价表
 * </p>
 *
 * @author admin
 * @since 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProductionPumpPrice extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 生产运输合同ID
     */
    private Long contractId;

    /**
     * 运输供应商ID
     */
    private Long supplierId;

    /**
     * 生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date takeTime;

    /**
     * 泵送类型表ID
     */
    private Long pumpType;

    /**
     * 泵送规格表ID
     */
    private Long pumpNorms;
    /**
     * 含税泵送单价
     */
    private Double taxPrice;
    /**
     * 泵送单价
     */
    private Double price;

    public ProductionPumpPrice(){}

    public ProductionPumpPrice(Long orgId, Long contractId, Long supplierId, Date takeTime, Long pumpType, Long pumpNorms, Double price) {
        this.orgId = orgId;
        this.contractId = contractId;
        this.supplierId = supplierId;
        this.takeTime = takeTime;
        this.pumpType = pumpType;
        this.pumpNorms = pumpNorms;
        this.price = price;
    }
}
